<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>夏季服装大促详情 | 社交购物</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #818cf8;
            --primary-dark: #3730a3;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.75rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            text-decoration: none;
        }
        
        .search-bar {
            max-width: 400px;
            width: 100%;
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border: 1px solid var(--border);
            border-radius: 30px;
            font-size: 0.95rem;
            transition: var(--transition);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
        }
        
        .nav-link {
            color: var(--secondary);
            margin-left: 1rem;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        /* 主内容区 */
        .main-container {
            padding: 2rem 0;
        }
        
        .breadcrumb {
            margin-bottom: 1.5rem;
            background-color: transparent;
            padding: 0;
        }
        
        .breadcrumb-item a {
            color: var(--secondary);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--dark);
        }
        
        /* 促销详情卡片 */
        .promotion-detail {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        /* 图片展示区 */
        .promo-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
        }
        
        .main-image {
            grid-column: span 2;
            grid-row: span 2;
            height: 400px;
            object-fit: cover;
        }
        
        .sub-image {
            height: 200px;
            object-fit: cover;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .sub-image:hover {
            opacity: 0.9;
        }
        
        /* 促销内容区 */
        .promo-content {
            padding: 2rem;
        }
        
        .promo-badge {
            display: inline-block;
            background-color: var(--danger);
            color: white;
            font-size: 0.85rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .promo-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.4;
        }
        
        .promo-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        .promo-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
            margin-bottom: 1.5rem;
        }
        
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .author-role {
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        .follow-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 6px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .follow-btn:hover {
            background-color: var(--primary-dark);
        }
        
        .follow-btn.following {
            background-color: transparent;
            color: var(--secondary);
            border: 1px solid var(--border);
        }
        
        .follow-btn.following:hover {
            background-color: var(--light);
        }
        
        .promo-description {
            line-height: 1.8;
            margin-bottom: 2rem;
            font-size: 1.05rem;
        }
        
        .promo-description p {
            margin-bottom: 1rem;
        }
        
        .promo-highlights {
            background-color: rgba(79, 70, 229, 0.05);
            border-left: 3px solid var(--primary);
            padding: 1.25rem;
            margin-bottom: 2rem;
            border-radius: 0 var(--radius) var(--radius) 0;
        }
        
        .highlight-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
        }
        
        .highlight-list {
            padding-left: 1.5rem;
        }
        
        .highlight-list li {
            margin-bottom: 0.5rem;
            position: relative;
        }
        
        .highlight-list li:before {
            content: "•";
            color: var(--primary);
            font-weight: bold;
            position: absolute;
            left: -1rem;
        }
        
        .promo-timeline {
            margin-bottom: 2rem;
        }
        
        .timeline-title {
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }
        
        .countdown {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .countdown-item {
            background-color: var(--dark);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
        }
        
        .countdown-label {
            font-size: 0.8rem;
            text-align: center;
            color: var(--secondary);
        }
        
        /* 操作按钮区 */
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .primary-action {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
        }
        
        .primary-action:hover {
            background-color: var(--primary-dark);
        }
        
        .secondary-action {
            background-color: white;
            color: var(--dark);
            border: 1px solid var(--border);
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .secondary-action:hover {
            background-color: var(--light);
        }
        
        .social-actions {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .social-action {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .social-action:hover {
            color: var(--primary);
        }
        
        .social-action.liked {
            color: var(--danger);
        }
        
        .social-action.saved {
            color: var(--primary);
        }
        
        /* 相关推荐 */
        .related-section {
            margin-bottom: 2.5rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }
        
        .related-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1.5rem;
        }
        
        .related-item {
            background-color: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        
        .related-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .related-image {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .related-content {
            padding: 1rem;
        }
        
        .related-title {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .related-meta {
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        /* 评论区 */
        .comments-section {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 2rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-count {
            font-weight: 600;
            color: var(--secondary);
        }
        
        .comment-sort {
            color: var(--primary);
            cursor: pointer;
            font-size: 0.95rem;
        }
        
        /* 评论输入框 */
        .comment-input-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-input-wrapper {
            flex: 1;
        }
        
        .comment-input {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1rem;
            resize: none;
            min-height: 100px;
            font-family: inherit;
            transition: var(--transition);
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
            gap: 1rem;
        }
        
        .cancel-comment {
            background: none;
            border: none;
            color: var(--secondary);
            cursor: pointer;
            padding: 0.5rem 1rem;
        }
        
        .post-comment {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .post-comment:hover {
            background-color: var(--primary-dark);
        }
        
        /* 评论列表 */
        .comments-list {
            margin-bottom: 2rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
            padding: 1.5rem 0;
            border-bottom: 1px solid var(--border);
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-author {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--secondary);
            margin-bottom: 0.5rem;
        }
        
        .comment-content {
            margin-bottom: 0.75rem;
            line-height: 1.6;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .comment-action {
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复区 */
        .replies {
            margin-left: 2.5rem;
            margin-top: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
            padding: 1rem 0;
            border-bottom: 1px solid var(--border);
        }
        
        .reply-item:last-child {
            border-bottom: none;
        }
        
        .reply-to {
            color: var(--primary);
            font-weight: 500;
        }
        
        .reply-input-container {
            display: flex;
            gap: 0.75rem;
            margin-top: 1rem;
        }
        
        .reply-input {
            flex: 1;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0.75rem;
            resize: none;
            min-height: 80px;
            font-family: inherit;
            transition: var(--transition);
        }
        
        .reply-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        /* 分页 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .page-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .search-bar {
                max-width: 300px;
            }
            
            .promo-images {
                grid-template-columns: 1fr;
            }
            
            .main-image {
                grid-column: span 1;
                grid-row: span 1;
                height: 300px;
            }
            
            .sub-image {
                height: 150px;
            }
        }
        
        @media (max-width: 768px) {
            .navbar {
                padding: 0.75rem;
            }
            
            .search-bar {
                max-width: 100%;
                margin: 1rem 0;
            }
            
            .promo-title {
                font-size: 1.5rem;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .primary-action, .secondary-action {
                width: 100%;
                justify-content: center;
            }
            
            .comments-section {
                padding: 1.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .promo-content {
                padding: 1.5rem;
            }
            
            .main-image {
                height: 250px;
            }
            
            .social-actions {
                flex-wrap: wrap;
            }
            
            .countdown-item {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .related-items {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
            
            .comment-item {
                flex-direction: column;
            }
            
            .replies {
                margin-left: 0;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">ShopSocial</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarContent">
                <div class="search-bar mx-auto">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索促销信息、品牌或关键词...">
                </div>
                
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">促销</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">关注</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-user-circle"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-container">
        <div class="container">
            <!-- 面包屑导航 -->
            <nav class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item"><a href="#">促销</a></li>
                <li class="breadcrumb-item"><a href="#">服装鞋帽</a></li>
                <li class="breadcrumb-item active" aria-current="page">夏季服装大促，全场低至3折起</li>
            </nav>
            
            <!-- 促销详情卡片 -->
            <div class="promotion-detail">
                <!-- 图片展示区 -->
                <div class="promo-images">
                    <img src="https://picsum.photos/1200/800?random=10" alt="夏季服装促销主图" class="main-image" id="mainImage">
                    <img src="https://picsum.photos/600/400?random=11" alt="夏季服装促销图2" class="sub-image" data-img="https://picsum.photos/1200/800?random=11">
                    <img src="https://picsum.photos/600/400?random=12" alt="夏季服装促销图3" class="sub-image" data-img="https://picsum.photos/1200/800?random=12">
                    <img src="https://picsum.photos/600/400?random=13" alt="夏季服装促销图4" class="sub-image" data-img="https://picsum.photos/1200/800?random=13">
                    <img src="https://picsum.photos/600/400?random=14" alt="夏季服装促销图5" class="sub-image" data-img="https://picsum.photos/1200/800?random=14">
                </div>
                
                <!-- 促销内容区 -->
                <div class="promo-content">
                    <span class="promo-badge">限时折扣</span>
                    
                    <h1 class="promo-title">夏季服装大促，全场低至3折起</h1>
                    
                    <div class="promo-meta">
                        <span><i class="far fa-eye"></i> 2.5k 浏览</span>
                        <span><i class="far fa-comment"></i> 128 评论</span>
                        <span><i class="far fa-calendar"></i> 2023-06-15 结束</span>
                    </div>
                    
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=1" alt="时尚精选的头像" class="author-avatar">
                        <div class="author-info">
                            <div class="author-name">时尚精选</div>
                            <div class="author-role">官方认证 · 服装领域达人</div>
                        </div>
                        <button class="follow-btn">
                            <i class="fas fa-plus"></i> 关注
                        </button>
                    </div>
                    
                    <div class="promo-description">
                        <p>夏季新品上市，配合换季清仓，全场服装3折起，更有满减优惠券可以叠加使用，先到先得！</p>
                        <p>本次活动涵盖男装、女装、童装等多个品类，包括T恤、短裤、连衣裙、防晒衣等多种夏季必备单品。无论你是追求时尚潮流，还是注重舒适实用，都能在这里找到适合自己的款式。</p>
                        <p>活动期间，每日前100名下单用户还将获得精美礼品一份，数量有限，送完即止。</p>
                    </div>
                    
                    <div class="promo-highlights">
                        <div class="highlight-title">
                            <i class="fas fa-star"></i> 促销亮点
                        </div>
                        <ul class="highlight-list">
                            <li>全场商品3折起，部分爆款低至2折</li>
                            <li>满299元减50元，满599元减150元</li>
                            <li>新用户注册即送100元优惠券包</li>
                            <li>支持7天无理由退换货</li>
                            <li>购物满399元免运费</li>
                        </ul>
                    </div>
                    
                    <div class="promo-timeline">
                        <div class="timeline-title">距离活动结束还有：</div>
                        <div class="countdown">
                            <div class="countdown-item">12</div>
                            <div class="countdown-item">23</div>
                            <div class="countdown-item">45</div>
                            <div class="countdown-item">56</div>
                        </div>
                        <div class="d-flex gap-1.5rem" style="margin-left: 0.5rem;">
                            <div class="countdown-label">小时</div>
                            <div class="countdown-label">分钟</div>
                            <div class="countdown-label">秒</div>
                        </div>
                    </div>
                    
                    <div class="action-buttons">
                        <button class="primary-action">
                            <i class="fas fa-shopping-bag"></i> 立即查看
                        </button>
                        <button class="secondary-action">
                            <i class="fas fa-share-alt"></i> 分享
                        </button>
                        <button class="secondary-action">
                            <i class="fas fa-map-marker-alt"></i> 查看门店
                        </button>
                    </div>
                    
                    <div class="social-actions">
                        <div class="social-action like-action">
                            <i class="far fa-heart"></i>
                            <span>342 点赞</span>
                        </div>
                        <div class="social-action save-action">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </div>
                        <div class="social-action">
                            <i class="far fa-comment"></i>
                            <span>128 评论</span>
                        </div>
                        <div class="social-action">
                            <i class="far fa-share-square"></i>
                            <span>56 分享</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 相关推荐 -->
            <div class="related-section">
                <h2 class="section-title">你可能也感兴趣</h2>
                
                <div class="related-items">
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=20" alt="夏季配饰促销" class="related-image">
                        <div class="related-content">
                            <div class="related-title">夏季配饰大集合，帽子、墨镜、项链全场5折</div>
                            <div class="related-meta">
                                <span><i class="far fa-user"></i> 潮流配饰</span>
                                <span class="ms-2"><i class="far fa-clock"></i> 3天前</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=21" alt="运动品牌促销" class="related-image">
                        <div class="related-content">
                            <div class="related-title">运动品牌夏季特惠，运动鞋服满300减100</div>
                            <div class="related-meta">
                                <span><i class="far fa-user"></i> 运动达人</span>
                                <span class="ms-2"><i class="far fa-clock"></i> 1天前</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=22" alt="泳装促销" class="related-image">
                        <div class="related-content">
                            <div class="related-title">夏日泳装特惠，精选款式第二件半价</div>
                            <div class="related-meta">
                                <span><i class="far fa-user"></i> 海滩时尚</span>
                                <span class="ms-2"><i class="far fa-clock"></i> 5小时前</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/400/300?random=23" alt="童装促销" class="related-image">
                        <div class="related-content">
                            <div class="related-title">儿童夏季服装特惠，满200元免运费</div>
                            <div class="related-meta">
                                <span><i class="far fa-user"></i> 亲子乐园</span>
                                <span class="ms-2"><i class="far fa-clock"></i> 昨天</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 评论区 -->
            <div class="comments-section">
                <div class="comments-header">
                    <h2 class="section-title">用户评论</h2>
                    <div class="comments-count">共 128 条评论</div>
                    <div class="comment-sort">
                        <i class="fas fa-sort"></i> 最新评论
                    </div>
                </div>
                
                <!-- 评论输入框 -->
                <div class="comment-input-container">
                    <img src="https://picsum.photos/100/100?random=99" alt="当前用户头像" class="user-avatar">
                    <div class="comment-input-wrapper">
                        <textarea class="comment-input" placeholder="分享你的看法..."></textarea>
                        <div class="comment-actions">
                            <button class="cancel-comment">取消</button>
                            <button class="post-comment">发表评论</button>
                        </div>
                    </div>
                </div>
                
                <!-- 评论列表 -->
                <div class="comments-list">
                    <!-- 评论1 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=30" alt="用户头像" class="user-avatar">
                        <div class="comment-wrapper">
                            <div class="comment-author">时尚达人小A</div>
                            <div class="comment-time">2小时前</div>
                            <div class="comment-content">
                                我已经买了三件T恤了，质量非常好，而且价格真的很划算！比平时便宜了一半多，推荐大家赶紧入手。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action like-comment">
                                    <i class="far fa-heart"></i>
                                    <span>42</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-reply"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=1" alt="时尚精选的头像" class="user-avatar" style="width: 32px; height: 32px;">
                                    <div class="reply-wrapper">
                                        <div class="comment-author">时尚精选 <span class="badge bg-primary text-white" style="font-size: 0.7rem; margin-left: 0.5rem;">官方</span></div>
                                        <div class="comment-time">1小时前</div>
                                        <div class="comment-content">
                                            <span class="reply-to">@时尚达人小A</span> 感谢您的支持和认可，我们会继续努力提供更多优质的产品和优惠活动！
                                        </div>
                                        <div class="comment-actions">
                                            <div class="comment-action like-comment">
                                                <i class="far fa-heart"></i>
                                                <span>8</span>
                                            </div>
                                            <div class="comment-action reply-btn">
                                                <i class="far fa-reply"></i>
                                                <span>回复</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="reply-input-container" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=99" alt="当前用户头像" class="user-avatar" style="width: 32px; height: 32px;">
                                    <div class="reply-input-wrapper" style="flex: 1;">
                                        <textarea class="reply-input" placeholder="回复 @时尚达人小A..."></textarea>
                                        <div class="comment-actions">
                                            <button class="cancel-comment">取消</button>
                                            <button class="post-comment">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论2 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=31" alt="用户头像" class="user-avatar">
                        <div class="comment-wrapper">
                            <div class="comment-author">购物小能手</div>
                            <div class="comment-time">昨天 15:30</div>
                            <div class="comment-content">
                                请问优惠券是自动发放的吗？还是需要手动领取？我刚才下单的时候好像没有看到可以使用优惠券的地方。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action like-comment">
                                    <i class="far fa-heart"></i>
                                    <span>15</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-reply"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=32" alt="用户头像" class="user-avatar" style="width: 32px; height: 32px;">
                                    <div class="reply-wrapper">
                                        <div class="comment-author">省钱达人</div>
                                        <div class="comment-time">昨天 16:45</div>
                                        <div class="comment-content">
                                            <span class="reply-to">@购物小能手</span> 需要在商品详情页手动领取优惠券，然后在结算的时候选择使用就可以了。
                                        </div>
                                        <div class="comment-actions">
                                            <div class="comment-action like-comment">
                                                <i class="far fa-heart"></i>
                                                <span>5</span>
                                            </div>
                                            <div class="comment-action reply-btn">
                                                <i class="far fa-reply"></i>
                                                <span>回复</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论3 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=33" alt="用户头像" class="user-avatar">
                        <div class="comment-wrapper">
                            <div class="comment-author">夏日穿搭</div>
                            <div class="comment-time">3天前</div>
                            <div class="comment-content">
                                连衣裙的款式很多，质量也不错，就是尺码有点偏大，建议大家买小一码。我已经收到货了，给大家发几张实拍图参考一下。
                            </div>
                            <div style="display: flex; gap: 0.5rem; margin: 0.75rem 0;">
                                <img src="https://picsum.photos/200/200?random=40" alt="用户上传的图片" style="width: 80px; height: 80px; object-fit: cover; border-radius: 4px;">
                                <img src="https://picsum.photos/200/200?random=41" alt="用户上传的图片" style="width: 80px; height: 80px; object-fit: cover; border-radius: 4px;">
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action like-comment liked">
                                    <i class="fas fa-heart"></i>
                                    <span>89</span>
                                </div>
                                <div class="comment-action reply-btn">
                                    <i class="far fa-reply"></i>
                                    <span>回复</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 分页 -->
                <div class="pagination-container">
                    <div class="pagination">
                        <button class="page-btn disabled">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="page-btn active">1</button>
                        <button class="page-btn">2</button>
                        <button class="page-btn">3</button>
                        <button class="page-btn">4</button>
                        <button class="page-btn">5</button>
                        <button class="page-btn">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 图片切换功能
            const subImages = document.querySelectorAll('.sub-image');
            const mainImage = document.getElementById('mainImage');
            
            subImages.forEach(img => {
                img.addEventListener('click', function() {
                    mainImage.src = this.getAttribute('data-img');
                    mainImage.alt = this.alt;
                });
            });
            
            // 关注按钮功能
            const followBtn = document.querySelector('.follow-btn');
            followBtn.addEventListener('click', function() {
                if (this.classList.contains('following')) {
                    // 取消关注
                    this.classList.remove('following');
                    this.innerHTML = '<i class="fas fa-plus"></i> 关注';
                } else {
                    // 关注
                    this.classList.add('following');
                    this.innerHTML = '<i class="fas fa-check"></i> 已关注';
                }
            });
            
            // 点赞功能
            const likeAction = document.querySelector('.like-action');
            likeAction.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countSpan = this.querySelector('span');
                let count = parseInt(countSpan.textContent);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                    countSpan.textContent = (count + 1) + ' 点赞';
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                    countSpan.textContent = (count - 1) + ' 点赞';
                }
            });
            
            // 收藏功能
            const saveAction = document.querySelector('.save-action');
            saveAction.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const textSpan = this.querySelector('span');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('saved');
                    textSpan.textContent = '已收藏';
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('saved');
                    textSpan.textContent = '收藏';
                }
            });
            
            // 评论点赞功能
            document.querySelectorAll('.like-comment').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = parseInt(countSpan.textContent);
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        countSpan.textContent = count + 1;
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        countSpan.textContent = count - 1;
                    }
                });
            });
            
            // 回复功能
            document.querySelectorAll('.reply-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const commentItem = this.closest('.comment-item, .reply-item');
                    const replies = commentItem.querySelector('.replies');
                    let replyInput = replies.querySelector('.reply-input-container');
                    
                    // 如果回复框不存在，则创建一个
                    if (!replyInput) {
                        const authorName = commentItem.querySelector('.comment-author').textContent.trim();
                        const replyHtml = `
                            <div class="reply-input-container">
                                <img src="https://picsum.photos/100/100?random=99" alt="当前用户头像" class="user-avatar" style="width: 32px; height: 32px;">
                                <div class="reply-input-wrapper" style="flex: 1;">
                                    <textarea class="reply-input" placeholder="回复 @${authorName}..."></textarea>
                                    <div class="comment-actions">
                                        <button class="cancel-comment">取消</button>
                                        <button class="post-comment">回复</button>
                                    </div>
                                </div>
                            </div>
                        `;
                        
                        replies.insertAdjacentHTML('beforeend', replyHtml);
                        replyInput = replies.querySelector('.reply-input-container');
                        
                        // 为新创建的取消按钮添加事件
                        replyInput.querySelector('.cancel-comment').addEventListener('click', function() {
                            replyInput.style.display = 'none';
                        });
                        
                        // 为新创建的回复按钮添加事件
                        replyInput.querySelector('.post-comment').addEventListener('click', function() {
                            const replyText = replyInput.querySelector('.reply-input').value.trim();
                            if (replyText) {
                                // 这里只是模拟回复成功，实际应用中会发送到服务器
                                alert('回复成功！');
                                replyInput.style.display = 'none';
                                replyInput.querySelector('.reply-input').value = '';
                            }
                        });
                    } else {
                        // 切换回复框显示状态
                        replyInput.style.display = replyInput.style.display === 'none' ? 'flex' : 'none';
                    }
                });
            });
            
            // 评论取消按钮
            document.querySelectorAll('.cancel-comment').forEach(btn => {
                btn.addEventListener('click', function() {
                    const inputContainer = this.closest('.comment-input-container, .reply-input-container');
                    inputContainer.querySelector('textarea').value = '';
                    
                    // 如果是回复框，隐藏它
                    if (inputContainer.classList.contains('reply-input-container')) {
                        inputContainer.style.display = 'none';
                    }
                });
            });
            
            // 发表评论按钮
            document.querySelector('.post-comment').addEventListener('click', function() {
                const commentInput = document.querySelector('.comment-input');
                const commentText = commentInput.value.trim();
                
                if (commentText) {
                    // 这里只是模拟评论成功，实际应用中会发送到服务器
                    alert('评论发表成功！');
                    commentInput.value = '';
                }
            });
            
            // 评论排序切换
            const commentSort = document.querySelector('.comment-sort');
            commentSort.addEventListener('click', function() {
                const sortText = this.childNodes[2].textContent.trim();
                if (sortText === '最新评论') {
                    this.childNodes[2].textContent = ' 最热评论';
                } else {
                    this.childNodes[2].textContent = ' 最新评论';
                }
            });
            
            // 倒计时功能（模拟）
            function updateCountdown() {
                const countdownItems = document.querySelectorAll('.countdown-item');
                let hours = parseInt(countdownItems[0].textContent);
                let minutes = parseInt(countdownItems[1].textContent);
                let seconds = parseInt(countdownItems[2].textContent);
                let milliseconds = parseInt(countdownItems[3].textContent);
                
                milliseconds--;
                if (milliseconds < 0) {
                    milliseconds = 99;
                    seconds--;
                    if (seconds < 0) {
                        seconds = 59;
                        minutes--;
                        if (minutes < 0) {
                            minutes = 59;
                            hours--;
                            if (hours < 0) {
                                hours = 0;
                                minutes = 0;
                                seconds = 0;
                                milliseconds = 0;
                            }
                        }
                    }
                }
                
                countdownItems[0].textContent = hours.toString().padStart(2, '0');
                countdownItems[1].textContent = minutes.toString().padStart(2, '0');
                countdownItems[2].textContent = seconds.toString().padStart(2, '0');
                countdownItems[3].textContent = milliseconds.toString().padStart(2, '0');
            }
            
            // 每秒更新一次倒计时
            setInterval(updateCountdown, 10);
        });
    </script>
</body>
</html>
    
